<?php

if(isset($_GET['fnc']) && $_GET['fnc'] == 'getServiceByDepartementId') {

    require_once('../service/service.cl.php');
    $service = new Service();
    $services = $service->getServiceByDepartementId($_GET['departementId']);
    header('content-type: application/json');
    die(json_encode($services));
}